unit cmdSetWidth;

interface

uses  classes, sysutils
    , nativeXml
    , appMappldXmlNode
    , appMappldXmlCommand
    , appMappldTypes
    , appMappldXmlContext
;

type
    {------------------------------ TCmdSetWidth }

    {***************************************************************************
    * TCmdSetWidth
    ***************************************************************************}
    TCmdSetWidth = class( TMappldXmlCommand )
protected
    procedure   internalProccess(); override;
    end;

implementation

{*******************************************************************************
* internalProccess
*******************************************************************************}
procedure TCmdSetWidth.internalProccess();
begin
    FxmlContext.width := FxmlNode.ValueAsIntegerDef( 640 );
end;

initialization

TMappldXmlCommand.registerCommandByCode( XML_CMD_SetWidth, TCmdSetWidth );

end.
